HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /var/www/kevin-demo/wp-content/plugins/woocommerce-payments/includes/core/service/README.md
# WooCommerce Payments Services

## Purpose

Expose WooCommerce Payments functionality through Services. Extensions should use these integration points provided in the `WCPay\Core` namespace, and should not use any methods from other classes, which are considered internal to WCPay. 

In this way, extensions will be able to use services in a reliable, and compatible manner. 

## Services available

- [`WC_Payments_Customer_Service_API`](customer-service.md)

## Adding New Services

- Add the new service within `includes\core\service`.
- Service should be in `WCPay\Core` namespace.
- Add functions in your service that act as proxies to the internal service methods, or consider how they might change in the future.
- Add tests in `tests\unit\core\service`.
- Expose service via `WC_Payments`.

[🔗 More about services within WooCommerce Payments Core](../CONTRIBUTING.md)